home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / DeveloperInterfaces / CIncludes / TargetVersMgt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-15  |  1.2 KB  |  59 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TargetVersMgt.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Kevin Aitken
  7.  
  8.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     4/17/94    KBA        Updated the file version parameter block to include the type and
  13.                                     creator so we can find files in the archive that have the same
  14.                                     name.
  15.          <1>    11/10/93    KBA        first checked in
  16.  
  17. */
  18.  
  19.  
  20.  
  21. #ifndef __TargetVersMgt__
  22. #define __TargetVersMgt__
  23.  
  24. #ifndef __Files__
  25. #include <Files.h>
  26. #endif
  27.  
  28.  
  29. typedef struct {
  30.     FSSpec            fSrcFSSpec;
  31.     long            fSrcDataType;
  32.     Str31            fTgtFileName;
  33.     long            fTgtVersionNum;
  34.     ResType            fTgtFileType;        // Not supported in 4.0.0
  35.     ResType            fTgtFileCreator;    // Not supported in 4.0.0
  36. } TgtFileVersType;
  37.  
  38. typedef struct {
  39.     FSSpec            fSrcFSSpec;
  40.     long            fSrcDataType;
  41.     OSType            fSrcRsrcType;    
  42.     short            fSrcRsrcID;
  43.     OSType            fTgtRsrcType;    
  44.     short            fTgtRsrcID;
  45.     long            fTgtRsrcVersionNum;
  46. } TgtRsrcVersType;
  47.  
  48. typedef union {
  49.     TgtFileVersType            fFileVers;
  50.     TgtRsrcVersType            fRsrcVers;
  51. } TargetVersPB, *TargetVersPBPtr;
  52.  
  53. #define    kVersTypeIsFile    -1
  54. #define    kVersTypeIsRsrc    1
  55.  
  56. typedef long    (*TargetVersProcPtr)( TargetVersPBPtr );        
  57.                             
  58. #endif
  59.